<%
	if (session.getAttribute("authorized") == null || !(Boolean)session.getAttribute("authorized")) 
	{
		System.out.println("Not authorized");
		RequestDispatcher rd = request.getRequestDispatcher("/login.jsp");
		rd.forward(request, response);
    } else {
    	System.out.println("authorized");%><div id="menuBtn"><ul>
    	<li><a class="menuButton" id="logoutBtn" href="#" onclick="logout(); return false;">Log out</a></li>
    	<!-- <li><a class="menuButton" href="#" onclick="syncFaceBook(); return false;">Sync with Facebook</a></li> -->
    	</ul></div><%
    }
%>
